//
//  ZZBaseViewModel.h
//  zhengzai-tv
//
//  Created by SC on 16/6/16.
//  Copyright © 2016年 zhengzai.tv. All rights reserved.
//

#import <Foundation/Foundation.h>

#define kViewModelParamsTitle @"title"

@interface ZZBaseViewModel : NSObject

- (instancetype)initWithParams:(NSDictionary *)params;
- (void)initialize;

@property (nonatomic, copy) NSString *title;

// 初始化时，从本地载入历史数据
@property (nonatomic, assign) BOOL shouldFetchLocalDataOnViewModelInitialize;
// ViewDidLoad时，从网络获取数据
@property (nonatomic, assign) BOOL shouldRequestRemoteDataOnViewDidLoad;

- (void)requestRemoteData;
- (void)requestRemoteData:(void (^)(BOOL success, id model))complete;

@end
